﻿using System;
using ITViet.Domains;
using ITViet.Services;
using ITViet.Web.App_Code;

namespace ITViet.Web.Pages
{
  public partial class AboutUs : BasePage
  {
    #region Events
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!IsPostBack && !IsCallback)
      {
        LoadData();
      }
    }
    #endregion

    #region Methods
		private void LoadData()
    {
      TList<HtmlContent> contentList = new HtmlContentService().GetByTypeAndLanguage(TypeId, CurrentLanguage.Id);
      if (contentList.Count > 0)
      {
				ltrSummary.Text = contentList[0].Summary;
        ltrContent.Text = contentList[0].Content;
      }
    }
    #endregion
  }
}
